﻿using Admin.NET.Core;
using System.ComponentModel.DataAnnotations;

namespace Admin.EcsWeb.Service.PatProduct.Dto;

/// <summary>
/// PatProductService基础输入参数
/// </summary>
public class PatProductBaseInput
    {
        /// <summary>
        /// 名称
        /// </summary>
        public virtual string NAME { get; set; }
        
        /// <summary>
        /// 描述
        /// </summary>
        public virtual string DES { get; set; }
        
        /// <summary>
        /// 创建时间
        /// </summary>
        public virtual DateTime CREATETIME { get; set; }
        
        /// <summary>
        /// 更新时间
        /// </summary>
        public virtual DateTime UPDATETIME { get; set; }
        
        /// <summary>
        /// 创建者Id
        /// </summary>
        public virtual decimal CREATEUSERID { get; set; }
        
        /// <summary>
        /// 修改者Id
        /// </summary>
        public virtual decimal UPDATEUSERID { get; set; }
        
        /// <summary>
        /// 软删除
        /// </summary>
        public virtual decimal ISDELETE { get; set; }
        
    }

    /// <summary>
    /// PatProductService分页查询输入参数
    /// </summary>
    public class PatProductInput : BasePageInput
    {
        /// <summary>
        /// 名称
        /// </summary>
        public string NAME { get; set; }
        
        /// <summary>
        /// 描述
        /// </summary>
        public string DES { get; set; }
        
    }

    /// <summary>
    /// PatProductService增加输入参数
    /// </summary>
    public class AddPatProductInput : PatProductBaseInput
    {
    }

    /// <summary>
    /// PatProductService删除输入参数
    /// </summary>
    public class DeletePatProductInput : BaseIdInput
    {
        /// <summary>
        /// 主键Id
        /// </summary>
        [Required(ErrorMessage = "主键Id不能为空")]
        public decimal ID { get; set; }
        
    }

    /// <summary>
    /// PatProductService更新输入参数
    /// </summary>
    public class UpdatePatProductInput : PatProductBaseInput
    {
        /// <summary>
        /// 主键Id
        /// </summary>
        [Required(ErrorMessage = "主键Id不能为空")]
        public decimal ID { get; set; }
        
    }

    /// <summary>
    /// PatProductService主键查询输入参数
    /// </summary>
    public class QueryByIdPatProductInput : DeletePatProductInput
    {

    }
